/**
 * @desc: 帮助文档
 * @author qiankui
 * @date 2023-4-12 14:19:32
 */
import request from '@/assets/common/js/utils/request'
/**
 * @description 获取帮助文档列表
 * @param Object: {data} 接口请求参数
 * @return
 * @author qiankui 2023-4-14 14:54:46
 **/
export function getlist(data) {
    return request({
        url: "/document/getlist",
        method: "post",
        data: data,
        formdataType: false
    })
}
/**
 * @description 新增帮助文档
 * @param Object: {data} 接口请求参数
 * @return
 * @author qiankui 2023-4-12 14:20:04
 **/
export function create(data) {
    return request({
        url: "/document/create",
        method: "post",
        data: data,
        formdataType: false
    })
}

/**
 * @description 删除文档
 * @param Object: {data} 接口请求参数
 * @return
 * @author qiankui 2023-4-14 11:50:34
 **/
export function deleteDocument(id) {
    return request({
        url: "document/delete/",
        method: "delete",
        params: id,
    })
}

/**
 * @description 获取帮助文档明细信息
 * @param Object: {data} 接口请求参数
 * @return
 * @author qiankui 2023-4-14 14:14:38
 **/
export function getDocument(data) {
    console.log(data);
    return request({
        url: "document/get/"+data,
        method: "get"
    })
}
/**
 * @description 获取帮助文档明细信息
 * @param Object: {data} 接口请求参数
 * @return
 * @author qiankui 2023-4-14 14:14:38
 **/
export function getresourceurl(data) {
    console.log(data);
    return request({
        url: "resource/getresourceurl/?fileName="+data,
        method: "get"
    })
}